const express = require('express');
const router = express.Router();
const { info, remove, save, update, list, page} = require('../controllers/{{table['alias']}}Controller');
const { authenticate } = require('../utils/authUtils');

router.get('/:id', authenticate, info);
router.delete('/:id', authenticate, remove);
router.post('/', authenticate, save);
router.put('/', authenticate, update);
router.post('/list', authenticate, list);
router.post('/page', authenticate, page);

module.exports = router;
